/**
 * 
 */
package com.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.demo.bean.City;
import com.demo.dao.PositionDAO;
import com.demo.service.PositionService;

/**
 * @author Issac
 *
 */
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor={Exception.class}) 
public class PositionServiceImpl implements PositionService {

	@Autowired
	private PositionDAO positionDAO;
	
	public PositionDAO getPositionDAO() {
		return positionDAO;
	}

	public void setPositionDAO(PositionDAO positionDAO) {
		this.positionDAO = positionDAO;
	}


	/* (non-Javadoc)
	 * @see com.demo.service.PositionService#list()
	 */
	public List<City> list() {
		return positionDAO.list();
	}

}
